package com.ruoyi.factory.buyprice.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购行情wh头对象 t_bumawh_head
 * 
 * @author ljj
 * @date 2024-06-11
 */
public class BumawhHead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 采购员 */
    @Excel(name = "采购员")
    private String buyer;

    /** 核算周期 1月 2季度 3半年 4年 */
    @Excel(name = "核算周期 1月 2季度 3半年 4年")
    private String accysle;

    /** 入库均价计算来源 1全部物料 2部分物料 */
    @Excel(name = "入库均价计算来源 1全部物料 2部分物料")
    private String countrule;

    /** 物料大类 */
    @Excel(name = "物料大类")
    private String bomname;

    /** 选择时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "选择时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sedate;

    /** 物料大类id */
    @Excel(name = "物料大类id")
    private Long bumaHeadId;

    /** 合同价格 */
    @Excel(name = "合同渠道")
    private String contractCha;

    @Excel(name = "合同价格")
    private BigDecimal contractChaPrice;
    //采购价
    private BigDecimal buyPriceh;
    //采购数量
    private BigDecimal buyamounth;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fgcCreator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date fgcCreatedate;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fgcLastmodifier;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date fgcLastmodifydate;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date fgcRowversion;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fgcUpdatehelp;

    /** 采购行情wh上游物料信息 */
    private List<BumawhRawBody> bumawhRawBodyList;

    /** 采购行情weihu渠道信息 */
    private List<BumawhChaBody> bumawhChaBodyList;

    /** 采购行情wherp物料信息 */
    private List<BumawhErpmaBody> bumawhErpmaBodyList;

    public BigDecimal getBuyPriceh() {
        return buyPriceh;
    }

    public void setBuyPriceh(BigDecimal buyPriceh) {
        this.buyPriceh = buyPriceh;
    }

    public BigDecimal getBuyamounth() {
        return buyamounth;
    }

    public void setBuyamounth(BigDecimal buyamounth) {
        this.buyamounth = buyamounth;
    }

    public String getContractCha() {
        return contractCha;
    }

    public void setContractCha(String contractCha) {
        this.contractCha = contractCha;
    }

    public BigDecimal getContractChaPrice() {
        return contractChaPrice;
    }

    public void setContractChaPrice(BigDecimal contractChaPrice) {
        this.contractChaPrice = contractChaPrice;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setBuyer(String buyer) 
    {
        this.buyer = buyer;
    }

    public String getBuyer() 
    {
        return buyer;
    }
    public void setAccysle(String accysle) 
    {
        this.accysle = accysle;
    }

    public String getAccysle() 
    {
        return accysle;
    }
    public void setCountrule(String countrule) 
    {
        this.countrule = countrule;
    }

    public String getCountrule() 
    {
        return countrule;
    }
    public void setBomname(String bomname) 
    {
        this.bomname = bomname;
    }

    public String getBomname() 
    {
        return bomname;
    }
    public void setSedate(Date sedate) 
    {
        this.sedate = sedate;
    }

    public Date getSedate() 
    {
        return sedate;
    }
    public void setBumaHeadId(Long bumaHeadId)
    {
        this.bumaHeadId = bumaHeadId;
    }

    public Long getBumaHeadId()
    {
        return bumaHeadId;
    }
    public void setFgcCreator(String fgcCreator) 
    {
        this.fgcCreator = fgcCreator;
    }

    public String getFgcCreator() 
    {
        return fgcCreator;
    }
    public void setFgcCreatedate(Date fgcCreatedate) 
    {
        this.fgcCreatedate = fgcCreatedate;
    }

    public Date getFgcCreatedate() 
    {
        return fgcCreatedate;
    }
    public void setFgcLastmodifier(String fgcLastmodifier) 
    {
        this.fgcLastmodifier = fgcLastmodifier;
    }

    public String getFgcLastmodifier() 
    {
        return fgcLastmodifier;
    }
    public void setFgcLastmodifydate(Date fgcLastmodifydate) 
    {
        this.fgcLastmodifydate = fgcLastmodifydate;
    }

    public Date getFgcLastmodifydate() 
    {
        return fgcLastmodifydate;
    }
    public void setFgcRowversion(Date fgcRowversion) 
    {
        this.fgcRowversion = fgcRowversion;
    }

    public Date getFgcRowversion() 
    {
        return fgcRowversion;
    }
    public void setFgcUpdatehelp(String fgcUpdatehelp) 
    {
        this.fgcUpdatehelp = fgcUpdatehelp;
    }

    public String getFgcUpdatehelp() 
    {
        return fgcUpdatehelp;
    }

    public List<BumawhRawBody> getBumawhRawBodyList()
    {
        return bumawhRawBodyList;
    }

    public void setBumawhRawBodyList(List<BumawhRawBody> bumawhRawBodyList)
    {
        this.bumawhRawBodyList = bumawhRawBodyList;
    }
    public List<BumawhChaBody> getBumawhChaBodyList()
    {
        return bumawhChaBodyList;
    }

    public void setBumawhChaBodyList(List<BumawhChaBody> bumawhChaBodyList)
    {
        this.bumawhChaBodyList = bumawhChaBodyList;
    }

    public List<BumawhErpmaBody> getBumawhErpmaBodyList()
    {
        return bumawhErpmaBodyList;
    }

    public void setBumawhErpmaBodyList(List<BumawhErpmaBody> bumawhErpmaBodyList)
    {
        this.bumawhErpmaBodyList = bumawhErpmaBodyList;
    }

    @Override
    public String toString() {
        return "BumawhHead{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", status='" + status + '\'' +
                ", unit='" + unit + '\'' +
                ", buyer='" + buyer + '\'' +
                ", accysle='" + accysle + '\'' +
                ", countrule='" + countrule + '\'' +
                ", bomname='" + bomname + '\'' +
                ", sedate=" + sedate +
                ", bumaHeadId=" + bumaHeadId +
                ", contractCha='" + contractCha + '\'' +
                ", contractChaPrice=" + contractChaPrice +
                ", buyPriceh=" + buyPriceh +
                ", buyamounth=" + buyamounth +
                ", fgcCreator='" + fgcCreator + '\'' +
                ", fgcCreatedate=" + fgcCreatedate +
                ", fgcLastmodifier='" + fgcLastmodifier + '\'' +
                ", fgcLastmodifydate=" + fgcLastmodifydate +
                ", fgcRowversion=" + fgcRowversion +
                ", fgcUpdatehelp='" + fgcUpdatehelp + '\'' +
                ", bumawhRawBodyList=" + bumawhRawBodyList +
                ", bumawhChaBodyList=" + bumawhChaBodyList +
                ", bumawhErpmaBodyList=" + bumawhErpmaBodyList +
                '}';
    }
}
